﻿@model IEnumerable<ejunkey.Models.Product>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            ProductName
        </th>
        <th>
            Details
        </th>
        <th>
            DetailsUrl
        </th>
        <th>
            DemoUrl
        </th>
        <th>
            Tagline
        </th>
        <th>
            ShortDescription
        </th>
        <th>
            Price
        </th>
        <th>
            Currency
        </th>
        <th>
            ImageFilePath
        </th>
        <th>
            Category1
        </th>
        <th>
            Category2
        </th>
        <th>
            Category3
        </th>
        <th>
            Category4
        </th>
        <th>
            Category5
        </th>
        <th>
            aspnet_Users
        </th>
        <th>
            IsMarketPalce
        </th>
        <th>
            Expiration
        </th>
        <th>
            Attempts
        </th>
        <th>
            Hours
        </th>
        <th>
            IsSingleFile
        </th>
        <th>
            FilePathEncryption
        </th>
        <th>
            RemoteUrlEncryption
        </th>
        <th>
            IsRedirection
        </th>
        <th>
            RedirectionUrlEncryption
        </th>
        <th>
            IsStoreCode
        </th>
        <th>
            PINOrRegistrationCodeEncryption
        </th>
        <th>
            IsGenCode
        </th>
        <th>
            CodeGenUrlEncryption
        </th>
        <th>
            IsAffectOrtherProducts
        </th>
        <th>
            OtherProductsFile
        </th>
        <th>
            IsInventoryControl
        </th>
        <th>
            IsTaxVAT
        </th>
        <th>
            IsShipOrBuyerAddress
        </th>
        <th>
            Weight
        </th>
        <th>
            Package
        </th>
        <th>
            PackageCapacity
        </th>
        <th>
            IsEditQuantity
        </th>
        <th>
            IsEditPrice
        </th>
        <th>
            MinPrice
        </th>
        <th>
            SuggestPrince
        </th>
        <th>
            LimitProducts
        </th>
        <th>
            IsVariants
        </th>
        <th>
            VariantOption1Name
        </th>
        <th>
            VariantOption2Name
        </th>
        <th>
            VariantOption3Name
        </th>
        <th>
            VariantOptionsValue
        </th>
        <th>
            IsVariations
        </th>
        <th>
            VariationOption1Name
        </th>
        <th>
            VariationOption2Name
        </th>
        <th>
            VariationOption3Name
        </th>
        <th>
            VariationOption1Value
        </th>
        <th>
            VariationOption2Value
        </th>
        <th>
            VariationOption3Value
        </th>
        <th>
            IsSendTransaction
        </th>
        <th>
            PaymentUrlEncryption
        </th>
        <th>
            EmailSubject
        </th>
        <th>
            EmailMessage
        </th>
        <th>
            IsReceiveCopy
        </th>
        <th>
            IsEnableTemplateEmail
        </th>
        <th>
            ItemNumber
        </th>
        <th>
            MessageAfterPayment
        </th>
        <th>
            PromoteOtherProduct
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.ProductName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Details)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DetailsUrl)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DemoUrl)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Tagline)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ShortDescription)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Price)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Currency.CurrencyName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ImageFilePath)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Category1)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Category2)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Category3)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Category4)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Category5)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.aspnet_Users.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsMarketPalce)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Expiration)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Attempts)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Hours)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsSingleFile)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FilePathEncryption)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RemoteUrlEncryption)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsRedirection)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RedirectionUrlEncryption)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsStoreCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PINOrRegistrationCodeEncryption)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsGenCode)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CodeGenUrlEncryption)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsAffectOrtherProducts)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.OtherProductsFile.OtherProductFileId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsInventoryControl)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsTaxVAT)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsShipOrBuyerAddress)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Weight)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Package.PackageType)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PackageCapacity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsEditQuantity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsEditPrice)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MinPrice)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.SuggestPrince)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.LimitProducts)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsVariants)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariantOption1Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariantOption2Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariantOption3Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariantOptionsValue)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsVariations)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariationOption1Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariationOption2Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariationOption3Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariationOption1Value)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariationOption2Value)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.VariationOption3Value)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsSendTransaction)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PaymentUrlEncryption)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EmailSubject)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EmailMessage)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsReceiveCopy)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IsEnableTemplateEmail)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ItemNumber)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.MessageAfterPayment)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PromoteOtherProduct.PromoteOtherProductId)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ProductId }) |
            @Html.ActionLink("Details", "Details", new { id=item.ProductId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ProductId })
        </td>
    </tr>
}

</table>
